package com.mdd.front.validate.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单入参
 */
@ApiModel(value = "订单入参", description = "订单入参")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderCancelParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @NotNull(message = "id参数必传且需大于0")
    private Long id;

    @ApiModelProperty(value = "用户id")
    @NotNull(message = "userId参数缺失")
    private Long userId;

    @ApiModelProperty(value = "source 来源:1:微信小程序,2:微信公众号,3:手机H5,4:电脑PC,5:苹果APP,6:安卓APP")
    @NotNull(message = "source参数缺失")
    private Integer source;
}
